package com.whnk.report.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.whnk.common.base.BaseEntity;

/**
 * SeriesData
 * 
 * @author whwhnk
 * @date 2019-09-09
 */
public class SeriesData extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** name */
	private String name;
	/** value */
	private String value;
	/** type */
	private String type;
	/** data */
	private List<String> data;
	
	public SeriesData() {
		
	}
	
	public SeriesData(String name, List<String> data) {
		this.name = name;
		this.data = data;
	}
	
	public SeriesData(String name, String value) {
		this.name = name;
		this.value = value;
	}
	
	public SeriesData(String name, String value, List<String> data) {
		this.name = name;
		this.value = value;
		this.data = data;
	}
	
    public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public List<String> getData() {
		return data;
	}

	public void setData(List<String> data) {
		this.data = data;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("name", getName())
            .append("value", getValue())
            .append("type", getType())
            .append("data", getData())
            .toString();
    }
}
